package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbBouns;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbBounsMapper {
    int deleteByPrimaryKey(String id);

    int insert(TbBouns record);

    int insertSelective(TbBouns record);

    TbBouns selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TbBouns record);

    int updateByPrimaryKey(TbBouns record);

    List<TbBouns> selectListByMemberId(@Param("mid") long mid, @Param("state") int state);

    int selectCountByMemberId(@Param("mid") long mid, @Param("state") int state);

    int ruinBouns();

    TbBouns selectTopByMemberId(long mid);

    int selectSumPointsByMemberId(long mid);
}